﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.Content;
using System.Web.Mvc;
using MethodWorx.CMS.Services;

namespace MethodWorx.CMS.UI.Models
{
    public class CreateContentTemplateModel
    {
        private SchemaService service;
        public PageTemplate PageTemplate { get; set; }

        public CreateContentTemplateModel(SchemaService service, Guid id)
        {
            this.service = service;
            this.PageTemplate = service.GetPageTemplateById(id);
        }

        public SelectList GetExistingContentTemplatesSelectList()
        {
            return new SelectList(this.service.GetAllContentTemplates(),
                "Id", "Name");
        }
    }
}
